package com.lixiaohan.lushudaohou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

@Data
@AllArgsConstructor//只加有参构造
@NoArgsConstructor//补上无参构造
@Entity
public class UserSpace {
    @Id
    private String spaceId;//个人空间id(N)
    private String spaceContent;//个人空间内容(N)
    private Integer spaceGood;//个人空间点赞数
    private Timestamp spaceTime;//个人空间发布时间(N)
    private Integer userId;//发布的用户id(N)
    private Integer pubUser;//是否公开(N)
}
